import request from '@/utils/request'

// 查询压力设备列表
export function listPressuredevice(query) {
    return request({
        url: '/water/pressuredevice/list',
        method: 'get',
        params: query
    })
}

// 查询压力设备详细
export function getPressuredevice(deviceId) {
    return request({
        url: '/water/pressuredevice/' + deviceId,
        method: 'get'
    })
}

// 新增压力设备
export function addPressuredevice(data) {
    return request({
        url: '/water/pressuredevice',
        method: 'post',
        data: data
    })
}

// 修改压力设备
export function updatePressuredevice(data) {
    return request({
        url: '/water/pressuredevice',
        method: 'put',
        data: data
    })
}

// 删除压力设备
export function delPressuredevice(deviceId) {
    return request({
        url: '/water/pressuredevice/' + deviceId,
        method: 'delete'
    })
}
